//
//  DQLoginView.m
//  DQBaisibudejie
//
//  Created by 杜倩 on 16/9/1.
//  Copyright © 2016年 杜倩. All rights reserved.
//

#import "DQLoginView.h"

@implementation DQLoginView

#pragma mark 键盘失去第一响应者
- (IBAction)loginBtn:(id)sender {
    [self.phoneText resignFirstResponder];
    [self.passText resignFirstResponder];
    
}

#pragma mark 点击空白处退出键盘
-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    [self.phoneText resignFirstResponder];
    [self.passText resignFirstResponder];

}

#pragma mark 登录
+(instancetype)loadLogin{
    return [[NSBundle mainBundle] loadNibNamed:@"DQLoginView" owner:nil options:nil][0];
}
#pragma mark 注册
+(instancetype)loadRegist{
    return [[NSBundle mainBundle] loadNibNamed:@"DQLoginView" owner:nil options:nil] [1];
}
@end
